package com.ruoyi.business.service.impl;

import com.ruoyi.business.entity.HomestayInfo;
import com.ruoyi.business.mapper.FrontHomestayInfoMapper;
import com.ruoyi.business.service.FrontHomestayInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Ao
 * @since 2024-01-08
 */
@Service
public class FrontHomestayInfoServiceImpl extends ServiceImpl<FrontHomestayInfoMapper, HomestayInfo> implements FrontHomestayInfoService {

    @Autowired
    FrontHomestayInfoMapper frontHomestayInfoMapper;




    @Override
    public List<HomestayInfo> selectByDistance(Double longitude, Double latitude, Double distance) {
        return frontHomestayInfoMapper.selectByDistance(longitude, latitude, distance);
    }

}
